Smush\Core\Helper D

Total Complexity 127
Dependencies 7
Dependents 24
Total lines 917
Lines of code 400
Logical lines of code 227
Comment lines 422
Methods 29
Properties 2

Methods 29

Method Rating Maintainability Complexity Lines of code
check_animated_status()
A
44 14 45
file_exists()
A
47 13 35
cache_get()
A
51 8 27
get_raw_attached_file()
A
56 8 17
logger()
S
47 6 38
delete_permanently()
S
56 7 18
get_pngjpg_savings()
S
53 6 23
get_mime_type()
S
56 6 18
is_smushable()
S
56 5 18
filter_by_mime()
S
60 5 13
is_non_rest_media()
S
60 5 13
size_limit_exceeded()
S
61 5 12
filter_error()
S
62 4 11
get_wpmudev_apikey()
S
66 4 9
get_attached_file()
S
60 3 12
get_image_media_link()
S
61 3 12
format_attachment_meta_item()
S
69 3 6
get_page_url()
S
70 3 6
get_file_ext()
S
66 3 8
format_meta_from_post()
S
66 3 9
cache_set()
S
65 2 9
get_user_name()
S
74 2 4
cache_delete()
S
68 2 7
is_user_allowed()
S
74 2 4
get_url()
S
64 1 11
wp_update_attachment_metadata()
S
75 1 4
original_file()
S
72 1 5
exists_or_downloaded()
S
78 1 3
clean_file_path()
S
78 1 3